const express = require('express')
const router = express.Router()

const settingHandler = require('../router_handle/setting')

// 上传轮播图
router.post('/uploadSwiper',settingHandler.uploadSwiper)
// 获取全部轮播图
router.post('/getAllSwiper',settingHandler.getAllSwiper)
// 获取公司名称
router.post('/getCompanyName',settingHandler.getCompanyName)
// 修改公司名称
router.post('/changeCompanyName',settingHandler.changeCompanyName)
// 编辑公司介绍接口
router.post('/changeCompanyIntroduce',settingHandler.changeCompanyIntroduce)
// 获取公司介绍
router.post('/getCompanyIntroduce',settingHandler.getCompanyIntroduce)
// 获取所有公司信息
router.post('/getAllCompanyIntroduce',settingHandler.getAllCompanyIntroduce)
// 部门设置
router.post('/setDepartment',settingHandler.setDepartment)
// 部门设置
router.post('/setProduct',settingHandler.setProduct)
// 获取部门
router.post('/getDepartment',settingHandler.getDepartment)
// 获取产品
router.post('/getProduct',settingHandler.getProduct)

module.exports = router